package com.ruoyi.project.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 分类对象 sys_type
 * 
 * @author jjp
 * @date 2020-04-09
 */
public class SysType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long typeId;

    private Long typeDetailId;

    private Long cityId;

    /** 祖级列表 */
    private String ancestors;

    /** 分类名称 */
    private String typeName;

    /** 数据字典1-工人服务 2-修补翻新 */
    private String sysModel;

    /** $column.columnComment */
    private Long parentTypeId;

    /** $column.columnComment */
    private Long level;

    /** 类别图标 */
    private String typeUrl;

    /** $column.columnComment */
    private Long userId;

    /** $column.columnComment */
    private String status;

    /** $column.columnComment */
    private String delFlag;

    private Long sort;

    private SysTypeDetail sysTypeDetail;

    /** 子部门 */
    private List<SysType> children = new ArrayList<SysType>();

    public List<SysType> getChildren() {
        return children;
    }

    public void setChildren(List<SysType> children) {
        this.children = children;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public void setTypeId(Long typeId)
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setAncestors(String ancestors) 
    {
        this.ancestors = ancestors;
    }

    public String getAncestors() 
    {
        return ancestors;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setSysModel(String sysModel) 
    {
        this.sysModel = sysModel;
    }

    public String getSysModel() 
    {
        return sysModel;
    }
    public void setParentTypeId(Long parentTypeId) 
    {
        this.parentTypeId = parentTypeId;
    }

    public Long getParentTypeId() 
    {
        return parentTypeId;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setTypeUrl(String typeUrl) 
    {
        this.typeUrl = typeUrl;
    }

    public String getTypeUrl() 
    {
        return typeUrl;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public SysTypeDetail getSysTypeDetail() {
        return sysTypeDetail;
    }

    public void setSysTypeDetail(SysTypeDetail sysTypeDetail) {
        this.sysTypeDetail = sysTypeDetail;
    }


    public Long getTypeDetailId() {
        return typeDetailId;
    }

    public void setTypeDetailId(Long typeDetailId) {
        this.typeDetailId = typeDetailId;
    }

    @Override
    public String toString() {
        return "SysType{" +
                "typeId=" + typeId +
                ", cityId=" + cityId +
                ", ancestors='" + ancestors + '\'' +
                ", typeName='" + typeName + '\'' +
                ", sysModel='" + sysModel + '\'' +
                ", parentTypeId=" + parentTypeId +
                ", level=" + level +
                ", typeUrl='" + typeUrl + '\'' +
                ", userId=" + userId +
                ", status='" + status + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", sort=" + sort +
                ", sysTypeDetail=" + sysTypeDetail +
                ", children=" + children +
                '}';
    }
}
